home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / architecture / arch_types.h < prev    next >
C/C++ Source or Header  |  1992-08-26  |  1KB  |  59 lines

  1. /*     Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved. 
  2.  *
  3.  * arch_types.h - Common machine-description data types.
  4.  *
  5.  * HISTORY
  6.  * 10-Sep-91    Doug Mitchell at NeXT
  7.  *      Created. 
  8.  */
  9.  
  10. #ifndef    _ARCHITECTURE_ARCH_TYPES_H_
  11. #define _ARCHITECTURE_ARCH_TYPES_H_
  12.  
  13. /*
  14.  * DMA channel status values.
  15.  */
  16. typedef unsigned char    IOChannelStatus;
  17. typedef unsigned char    IOUserStatus;
  18.  
  19. /*
  20.  * Two ways of looking at deviceType.
  21.  */
  22. typedef unsigned int    IODeviceType;
  23. typedef unsigned short    IODeviceIndex;
  24. typedef unsigned short     IODeviceRevision;
  25.  
  26. typedef struct {
  27.     IODeviceIndex         deviceIndex;
  28.     IODeviceRevision     deviceRevision;
  29. } IODeviceTypeIr;
  30.  
  31. typedef union {
  32.     IODeviceType         deviceType;
  33.     IODeviceTypeIr         deviceTypeIr;
  34. } IODeviceTypeUn;
  35.  
  36.  
  37. /*
  38.  * Two ways of looking at slot ID.
  39.  */
  40. typedef    unsigned int    IOSlotId;
  41. typedef struct {        
  42.     unsigned short        valid:1,    // 15 
  43.                 console:1,    // 14 - should be 0 (?)
  44.                 bootDev:1,    // 13 - should be 0 (?)
  45.                 rsvd:3,        // 12..10 - must be 0
  46.                 blockId:3,    // 9..7
  47.                 prodId:7;    // 6..0
  48. } IOSlotIdMfg;
  49.  
  50. typedef union {
  51.     IOSlotId        slotId;        // all 32 bits
  52.     struct {
  53.         IOSlotIdMfg    mfgId;        // 31..16
  54.         unsigned short     boardId;    // 15..0
  55.     } slotIdStr;
  56. } IOSlotIdUn;
  57.  
  58. #endif    _ARCHITECTURE_ARCH_TYPES_H_
  59.